package app.vendorportal.api.data.request;

import app.vendorportal.api.data.ProductInfo;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Bribin
 */
@XmlRootElement(name = "save-or-update-product-request")
@XmlAccessorType(XmlAccessType.FIELD)
public class SaveOrUpdateProductRequest {

    @NotNull(message = "product info is required")
    @XmlElement(name = "product-info")
    private ProductInfo productInfo;

    public ProductInfo getProductInfo() {
        return productInfo;
    }

    public void setProductInfo(ProductInfo productInfo) {
        this.productInfo = productInfo;
    }

}
